/* 
 * File:   Vector2DTest.cpp
 * Author: max
 *
 * Created on Nov 16, 2012, 4:54:58 PM
 */

#include <stdlib.h>
#include <iostream>
#include "Vector2D.h"

using namespace TP::Matematica;

/*
 * Simple C++ Test Suite
 */

void test1() {
    std::cout << "Vector2DTest test 1" << std::endl;

    Vector2D* vector = new Vector2D();

    vector->X(10);
    vector->Y(10);

    if (10 != vector->X() || 10 != vector->Y())
        std::cout << "%TEST_FAILED% time=0 testname=test1 (Vector2DTest) message=El vector no tiene la informacion con la que se inicializo." << std::endl;
    
    delete vector;
}

void test2() {
    std::cout << "Vector2DTest test 2" << std::endl;
    std::cout << "%TEST_FAILED% time=0 testname=test1 (Vector2DTest) message=error message sample" << std::endl;
}

int main(int argc, char** argv) {
    std::cout << "%SUITE_STARTING% Vector2DTest" << std::endl;
    std::cout << "%SUITE_STARTED%" << std::endl;

    std::cout << "%TEST_STARTED% test1 (Vector2DTest)" << std::endl;
    test1();
    std::cout << "%TEST_FINISHED% time=0 test1 (Vector2DTest)" << std::endl;
    /*
    std::cout << "%TEST_STARTED% test2 (Vector2DTest)\n" << std::endl;
    test2();
    std::cout << "%TEST_FINISHED% time=0 test2 (Vector2DTest)" << std::endl;
    */
    std::cout << "%SUITE_FINISHED% time=0" << std::endl;

    return (EXIT_SUCCESS);
}

